package com.windmill.core;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CardConstants {
	public static final String CMD_MSG = "[#＃]([a-zA-Z?？]{1,4}) *([^ ]*) ?([^ ]*)";
	public static final String CARD_INFO_V3 = "http://appimg2.qq.com/card/mk/card_info_v3.js";
	public static void main(String[] args) {
		Pattern p = Pattern.compile(CMD_MSG);
		Matcher m = p.matcher("#ques你妹的 哈哈");
		if(m.find()){
			System.out.println(m.group());
			System.out.println(m.group(1));
			System.out.println(m.group(2));
			System.out.println(m.group(3));
		}
		System.out.println();
	}
}
